home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / soundkit / NXSoundParameters.h < prev    next >
Text File  |  1993-03-16  |  1KB  |  44 lines

  1. /*
  2.  * NXSoundParameters.h
  3.  *
  4.  * Copyright (c) 1993, NeXT Computer, Inc.  All rights reserved. 
  5.  */
  6.  
  7. #import <objc/Object.h>
  8. #import <objc/HashTable.h>
  9. #import <sound/soundstruct.h>
  10. #import <soundkit/NXSoundParameterTags.h>
  11.  
  12. @protocol NXSoundParameters
  13. - (BOOL)boolValueForParameter:(NXSoundParameterTag)ptag;
  14. - (int)intValueForParameter:(NXSoundParameterTag)ptag;
  15. - (float)floatValueForParameter:(NXSoundParameterTag)ptag;
  16. - (void)setParameter:(NXSoundParameterTag)ptag toBool:(BOOL)flag;
  17. - (void)setParameter:(NXSoundParameterTag)ptag toInt:(int)value;
  18. - (void)setParameter:(NXSoundParameterTag)ptag toFloat:(float)value;
  19. - (void)removeParameter:(NXSoundParameterTag)ptag;
  20. - (BOOL)isParameterPresent:(NXSoundParameterTag)ptag;
  21. - (void)getParameters:(const NXSoundParameterTag **)list
  22.     count:(unsigned int *)numParameters;
  23. - (void)getValues:(const NXSoundParameterTag **)list
  24.      count:(unsigned int *)numValues forParameter:(NXSoundParameterTag)ptag;
  25. @end
  26.  
  27. @interface NXSoundParameters:Object <NXSoundParameters>
  28. {
  29.     HashTable        *_paramTable;
  30.     NXSoundParameterTag *_paramList;
  31.     int            _reserved;
  32. }
  33.  
  34. + (const char *)localizedNameForParameter:(NXSoundParameterTag)ptag;
  35. - init;
  36. - initFromSound:aSound;
  37. - initFromSoundStruct:(SNDSoundStruct *)soundStruct;
  38. - (void)configureSoundStruct:(SNDSoundStruct *)soundStruct;
  39. - write:(NXTypedStream *)stream;
  40. - read:(NXTypedStream *)stream;
  41. - free;
  42.  
  43. @end
  44.